import React,{Component} from 'react';
import './App.css';

import RouterView from './router/RouterView';
//导入路由配置表
import routes from './router/routeConfig'


class App extends Component {
  render() {
    return (
      <div className='app'>

        {/* 渲染RouterView组件(传入一级路由规则,内部会动态生成一级路由规则) */}
        <RouterView routes={routes} />
      </div>
    );
  }
}

export default App;
